﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.IM.Response;
using Yun.Interface;
using Yun.Util;

namespace Yun.IM.Request
{
    /// <summary>
    /// 获取群组信息
    /// yun.im.rongcloud.group.get
    /// </summary>
    public class GetIMGroupRequest : ITopRequest<GetIMGroupResponse>
    {
        /// <summary>
        /// 来源组ID（例如：嗖嗖溜达的圈ID）
        /// </summary>
        public int? SgId { get; set; }

        /// <summary>
        /// 群组ID
        /// </summary>
        public int? GroupId { get; set; }

        public string GetApiName()
        {
            return "yun.im.rongcloud.group.get";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"sgid", SgId},
                {"groupid", GroupId}
            };

            return parameters;
        }

        public void Validate()
        {
           
        }


    }
}
